﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Zhongy
{
    public abstract class IHandler
    {
        public abstract void OnReceive(ClientPer client, SocketReceiveMsg msg);

        public abstract void OnDisconnect(ClientPer client);

        public virtual void Dispatch(int transCode,int evtCode,params object[] msg)
        {
            MsgCenter.Instance.Dispatch(transCode, evtCode, msg);
        }
    }
}
